<div class="row">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'member-_form-form',
    'enableAjaxValidation'=>true,
    'enableClientValidation'=>true,
    'clientOptions'=>array(  
        'validateOnSubmit'=>true,  
     ),
)); ?>
<table class="table table-bordered table-hover definewidth">
    	<tr>
            <td width="10%" class="tableleft">
	        	<?php echo $form->labelEx($model,'username'); ?>
	        </td>
            <td class="br0">
		        <?php echo $model->username;?>
	        </td>            
	    </tr>
   	    <tr>
            <td width="10%" class="tableleft">
        		<?php echo $form->labelEx($model,'email'); ?>
        	</td>
            <td class="br0">
		        <?php echo $form->textField($model,'email'); ?>
		        <?php echo $form->error($model,'email'); ?> 
	        </td>            
	    </tr>
   	    <tr>
            <td width="10%" class="tableleft">
        		<?php echo $form->labelEx($model,'role_id'); ?>
        	</td>
            <td class="br0">
	        <?php 
	        if($model->role_id) $model->role_id = explode('|' ,$model->role_id);
	        echo $form->checkBoxList($model,'role_id',$roles,array('separator'=>'&nbsp;')); ?>
	        <?php echo $form->error($model,'role_id'); ?>
	        </td>            
	    </tr>
   	    <tr>
            <td width="10%" class="tableleft">
        		<?php echo $form->labelEx($model,'isactive'); ?>
        	</td>
            <td class="br0">
	        <?php 
	        $isactive = Yii::app()->dict->get('member','isactive');
	        echo $form->radioButtonList($model,'isactive',$isactive,array('separator'=>'&nbsp;')); ?>
	        <?php echo $form->error($model,'isactive'); ?>
	        </td>            
	    </tr>
		<tr>
	        <td class="tableleft"></td>
	        <td>
	        	<?php echo CHtml::submitButton('保存',array('class'=>'button button-primary'));?>
	            <?php echo CHtml::link('返回列表',$this->createUrl('member/index'),array('class'=>'button button-success'));?>
	        </td>
	    </tr>
</table>
<?php $this->endWidget(); ?>
</div>